import 'virtual:uno.css'
import '@/assets/style/index.scss'

import { createApp } from 'vue'
import App from './App.vue'
const app = createApp(App)

import router from './router/index'
app.use(router)

// 引入pinia来管理状态
import { createPinia } from 'pinia'
const pinia = createPinia()
app.use(pinia)
// pinia数据持久化
import piniaPersist from 'pinia-plugin-persist'
pinia.use(piniaPersist)

// 自动注册全局组件
import globComponents from '@/components/globComponents'
app.use(globComponents)

app.mount('#app')
